import request from '@/utils/request_axios'
// 拓布图管理查询
// export function queryTopology(data) {
//   return request({
//     url: '/btos/topology',
//     method: 'get',
//     data: data
//   })
// }
// 拓布图管理查询
export function queryTopology(data) {
  return request({
    url: '/btos/topology/tree',
    method: 'get',
    data: data
  })
}
// 拓布图管理新增
export function addTopology(data) {
  return request({
    url: '/btos/topology',
    method: 'post',
    data: data
  })
}
// 拓布图管理修改
export function editTopology(data) {
  return request({
    url: '/btos/topology',
    method: 'put',
    data: data
  })
}
// 拓布图管理详情
export function detailTopology(id) {
  return request({
    url: '/btos/topology',
    method: 'get',
    show: true,
    data: {
      id
    }
  })
}
// 拓布图管理删除
export function deleteTopology(id) {
  return request({
    url: '/btos/topology',
    method: 'delete',
    show: true,
    data: {
      id
    }
  })
}
// 拓布图管理查询下级
export function queryTopologyNext(data) {
  return request({
    url: '/btos/topology/list',
    method: 'get',
    data: data
  })
}
